#ifndef HC05_H
#define HC05_H

#include <stdint.h>

#define HC05_BUFFER_SIZE 100

typedef struct  {
  uint8_t *p_read;
  uint8_t *p_write;
  uint8_t bufin[HC05_BUFFER_SIZE];  // 输入缓冲区
  uint8_t bufout[10];      // 输出缓冲区，其实并不需要
}Hc05_HandleTypeDef;

int Hc05_Init(Hc05_HandleTypeDef *handle);

uint8_t Hc05_Empty(Hc05_HandleTypeDef *handle);
uint8_t Hc05_Read(Hc05_HandleTypeDef *handle);
uint8_t Hc05_SetGlobal(Hc05_HandleTypeDef *handle);

#endif
